<template>
  <div>
    <div class="avatar">

    </div>
  </div>
</template>

<script>
export default {
  name: "avatar"
}
</script>

<style scoped>
.avatar {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  background-image: url("../assets/vue.svg");
  background-repeat: no-repeat;
  cursor: pointer;
  position: relative;
}

.avatar::before, .avatar::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 50%;
}

.avatar::before {
  background-color: rgba(0, 0, 0, 0.5);
}

.avatar::after {
  background-color: rgba(0, 0, 0, 0.5);
  clip-path: circle(0% at 50% 50%);
  transition: 0.5s;
}

.avatar:hover::after {
  clip-path: circle(50% at 50% 50%);
}
</style>